/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package model;

import java.io.Serializable;
import java.util.Date;

/**
 *
 * @author phuc
 */
public class ChiTietHoaDon implements Serializable {
    private static final long serialVersionUID = 1L;
    private Long cthdid;
    private long tauID;
    private Date ngayTauChay;
    private HoaDon hoaDonID;
    private Ghe gheID;
    private Ga gaDen;
    private Ga gaDi;

    public ChiTietHoaDon() {
    }

    public ChiTietHoaDon(Long cthdid) {
        this.cthdid = cthdid;
    }

    public ChiTietHoaDon(Long cthdid, long tauID, Date ngayTauChay) {
        this.cthdid = cthdid;
        this.tauID = tauID;
        this.ngayTauChay = ngayTauChay;
    }

    public Long getCthdid() {
        return cthdid;
    }

    public void setCthdid(Long cthdid) {
        this.cthdid = cthdid;
    }

    public long getTauID() {
        return tauID;
    }

    public void setTauID(long tauID) {
        this.tauID = tauID;
    }

    public Date getNgayTauChay() {
        return ngayTauChay;
    }

    public void setNgayTauChay(Date ngayTauChay) {
        this.ngayTauChay = ngayTauChay;
    }

    public HoaDon getHoaDonID() {
        return hoaDonID;
    }

    public void setHoaDonID(HoaDon hoaDonID) {
        this.hoaDonID = hoaDonID;
    }

    public Ghe getGheID() {
        return gheID;
    }

    public void setGheID(Ghe gheID) {
        this.gheID = gheID;
    }

    public Ga getGaDen() {
        return gaDen;
    }

    public void setGaDen(Ga gaDen) {
        this.gaDen = gaDen;
    }

    public Ga getGaDi() {
        return gaDi;
    }

    public void setGaDi(Ga gaDi) {
        this.gaDi = gaDi;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (cthdid != null ? cthdid.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof ChiTietHoaDon)) {
            return false;
        }
        ChiTietHoaDon other = (ChiTietHoaDon) object;
        if ((this.cthdid == null && other.cthdid != null) || (this.cthdid != null && !this.cthdid.equals(other.cthdid))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "entity.ChiTietHoaDon[ cthdid=" + cthdid + " ]";
    }
    
}
